package com.code.day20;

import java.io.FileWriter;
import java.io.IOException;

public class Demo09IOEx {
    public static void main(String[] args) {
        FileWriter fileWriter = null;
        try {
            fileWriter = new FileWriter("D:\\java-code\\java-full-stack\\01-java-base\\src\\com\\code\\day20\\file\\demo4.txt");
            fileWriter.write("你好");
        } catch (IOException e) {
           e.printStackTrace();
        } finally {
            try {
                fileWriter.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }

    }
}
